package liuch.beans;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyTestBeanWithAnnotation {

    @Bean(name = "myTestBean")
    public MyTestBean myTestBean() {
        MyTestBean myTestBean = new MyTestBean();
        myTestBean.setId("Configuration");
        myTestBean.setName("Configuration");
        return myTestBean;
    }

}
